package com.yuanlrc.hotel.account.domain;

import com.yuanlrc.common.annotation.Excel;
import com.yuanlrc.common.core.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * 前台用户对象 ylrc_account
 * 
 * @author yuanlrc
 * @date 2020-11-18
 */
public class Account extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 状态 0：停用  1：启用 */
    private Integer state;

    /** 头像 */
    @Excel(name = "头像")
    private String headPic;

    /** 性别 */
    @Excel(name = "性别")
    private Long sex;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String name;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idNum;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setHeadPic(String headPic) 
    {
        this.headPic = headPic;
    }

    public String getHeadPic() 
    {
        return headPic;
    }
    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public String getIdNum() {
        return idNum;
    }

    public void setIdNum(String idNum) {
        this.idNum = idNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("state", getState())
            .append("headPic", getHeadPic())
            .append("sex", getSex())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("name", getName())
            .append("idNum", getIdNum())
            .toString();
    }
}
